<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<title>保存入库｜海外仓管理</title>
<script type="text/javascript">
function addstock()
{
	$('#changstatusform').modal('show');
}
</script>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent tables">
  <div class="pageheader notab">
    <h1 class="pagetitle">保存入库</h1>
    <span class="pagedesc"></span>
     <div class="menulist">
        		
               </div>
    
     </div>
  <!--pageheader-->
  
  <div id="contentwrapper" class="contentwrapper"> 

      <form class="stdform stdform2" method="post" id="search" action="/oversea/addstock">
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
      <colgroup>
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      </colgroup>
      <thead>
        <tr>
          <th class="head1">商品名称</th>
          <th class="head0">SKU</th>
           <th class="head0">成本价</th>
          <th class="head0">状态</th>
          <th class="head0">入库数量</th>
        </tr>
      </thead>
      <tbody>
      
      {{foreach from=$newskulist item=li key=key}}
      <tr  {{if $li.st==1}}bgcolor="#FFD2D2" title="带商标商品"{{/if}} {{if $li.hw==1}}bgcolor="#CCFFFF" title="只允许发海外仓商品"{{/if}}>
       
        <td>{{$li.name}}<input type="hidden" name="sku[]" value="{{$li.sku}}"></td>
        <td>{{$li.sku}}</td>
        <td class="center">{{$li.costprice}}</td>
        <td class="center">{{$li.status}}</td>
        <td class="center"><input type="text" name="nums[]" id="nums" class="width200" value="{{$other}}" placeholder="填写数字" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'');" /></td>
        
      </tr>
      {{/foreach}}
        </tbody>
      <tr>
          <td colspan="6">  <button type="submit" class="submit radius2" id="btn"  >确定保存</button></td>
          
        </tr>
    </table>
    </form>
    <br />
    <br />
  </div>
</div>
<!--bodywrapper-->
<!-- 模态框（Modal） SKU状态 -->
<form action="/oversea/ajaxbutton?op=addstock"  method="post" name="otherforms" id="otherforms" >
  <div class="modal fade" id="changstatusform" tabindex="-1" role="dialog" aria-labelledby="schangstatusform" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="schangstatusform">入库操作 </h4>
        </div>
        <div class="modal-body">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>SKU(一行一个):<textarea name="sku" id="sku" cols="50" rows="5" class="longinput"></textarea>
                </td>
            </tr>
        
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
            <button type="submit" class="btn btn-primary" > 提交 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
</form>
<!-- 模态框（Modal）状态结束 -->

</body>
</html>